package day1212;

public class File12 {
    public static void main(String[] args) {
        int num=100;
        while(num<=999){
            int a = num / 1 % 10;
            int b = num / 10 % 10;
            int c = num / 100 % 10;
            String rs=(a * a * a + b * b * b + c * c * c == num)?  num+"是水仙花数" : "不是水仙花数";
            System.out.println(rs);
            num++;
        }
    }
}
